/**
 * @method table表格的标题
 */
export const columns = [
  {
    title: '报告编号',
    dataIndex: 'report_number',
    slotName: 'report_number',
    ellipsis: true
  },
  {
    title: '报告名称',
    dataIndex: 'report_name',
    slotName: 'report_name',
    ellipsis: true
  },
  {
    title: '合规结论',
    dataIndex: 'report_status',
    slotName: 'report_status',
    ellipsis: true
  },
  {
    title: '上传人',
    dataIndex: 'uploader_name',
    slotName: 'uploader_name',
    ellipsis: true,
    tooltip: true,
    width: 120
  },
  {
    title: '上传日期',
    dataIndex: 'create_time',
    slotName: 'create_time',
    ellipsis: true,
    tooltip: true,
    width: 150
  },
  {
    title: '操作',
    slotName: 'operator',
    width: 200,
    fixed: 'right',
    align: 'right',
    bodyCellClass: 'flex-right'
  }
];

export const operatorData = [
  { label: '查看报告', code: 'showDetail' },
  { label: '删除', code: 'delete' }
];

export const columns1 = [
  {
    title: '资产名称',
    dataIndex: 'name',
    slotName: 'name'
  },
  {
    title: '版本号',
    dataIndex: 'version',
    slotName: 'version',
    width: 100
  }
];

export const assetFilesRules = {
  report_number: [
    {
      required: true,
      message: '请输入报告编号',
      trigger: 'blur'
    }
  ],
  report_name: [
    {
      required: true,
      message: '请输入报告名称',
      trigger: 'blur'
    }
  ],
  report_status: [
    {
      required: true,
      message: '请选择合规结论',
      trigger: 'change'
    }
  ]
};

export const fileList = [
  {
    id: 52,
    file_name: '软件基本情况调研.xlsx',
    file_url: '',
    file_info:
      '100|1781a4b60d4665280970553b5e738ec49ccaf0ba4ab5db9641cd387b3e00a068|软件基本情况调研.xlsx'
  },
  {
    id: 53,
    file_name: '登记服务平台功能重点.xls',
    file_url: '',
    file_info:
      '100|dac171e8ffb4a24e8299780ff58d7e4c6d5669bdb154ec82bc06a74de7359e9f|登记服务平台功能重点.xls'
  },
  {
    id: 54,
    file_name: '数据资产登记&管理平台功能清单-630+712版本.xls',
    file_url: '',
    file_info:
      '100|a63382d1c68233f0796556afed848a0e15703b6d32ea06a7eb15224b51107c76|数据资产登记&管理平台功能清单-630+712版本.xls'
  },
  {
    id: 55,
    file_name: '第伍要素前端代码走查（第一次）(1).pdf',
    file_url: '',
    file_info:
      '100|92ca63f0b25d066e884eb8b76f02aa1bd70e6221be1874806675dcdd344d4a82|第伍要素前端代码走查（第一次）(1).pdf'
  }
];
